export interface LoginRequestData {
  /** admin 或 editor */
  // username: "admin" | "editor" | "test"
  username: string
  /** 密码 */
  password: string
  account: string
  mobile: string
  /** 验证码 */
  code: string
}
export interface LoginByCodeRequestData {
  mobile: string
}
// forgetRequestData
export interface ForgetRequestData {
  username: string
  code: string
}
export interface SendCodeRequestData {
  username: string
}
// forgetRequestData
export interface SendFormData {
  username: string
}
export interface personalRequestData {
  username: string
  mobile: string
  birthday: any
  sex: number
  hangye: number
  zhicheng: number
  job: number
  edu: number
  email: string
  head_ico: string
}
export interface RegisterRequestData extends LoginRequestData {
  /** 注册账号 */
  username: string
  // username: "admin" | "editor" | "test"
  /** 注册账号 */
  account: string
  /** 密码 */
  password: string
  /** 手机号码 */
  mobile: string
  /** 确认密码 */
  passwordConfirm: string
  /** 验证码 */
  code: string
}

export interface ForgetRequestData {
  /** 账号 */
  username: string
  /** 验证码 */
  code: string
  newPassword: string
  rePassword: string
}
export type CaptchaResponseData = ApiResponseData<string>

export type LoginResponseData = ApiResponseData<{ token: string, username: string, mobile: string, id: number, account: string }>
export type SendMsgResponseData = ApiResponseData<{ code: number, data: any, msg: string}>
export type RegisterResponseData = ApiResponseData<{ token: string, username: string, mobile: string}>

export type ForgetResponseData = ApiResponseData<{ code: number, data: any, msg: string}>

export type SendCodeResponseData = ApiResponseData<{ code: number, data: any, msg: string}>
